﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProgNetComponents.Data.SqlCe
{
    public class SqlCeSchemaChecker : SchemaChecker
    {
        public SqlCeSchemaChecker(string ConnectionString)
            : base(ConnectionString)
        {
        }

        protected override string TableNameColumn
        {
            get { return "TABLE_NAME"; }
        }

        protected override string ColumnNameColumn
        {
            get { return "COLUMN_NAME"; }
        }

        protected override string TableName
        {
            get { return "INFORMATION_SCHEMA.COLUMNS"; }
        }

        protected override System.Data.Common.DbDataAdapter CreateAdapter(string connectionString, string selectString)
        {
            return new System.Data.SqlServerCe.SqlCeDataAdapter(selectString, connectionString);
        }
    }
}
